package
{
	import copyengine.utils.CERandom;

	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.events.Event;

	public class SkeletionPerformance_0 extends Sprite
	{
		private var allSkeletionSwardMcVector:Vector.<DisplayObject>;

		public function SkeletionPerformance_0()
		{
			super();
		}

		public function initialize():void
		{
			allSkeletionSwardMcVector=new Vector.<DisplayObject>();
			for (var i:int=0; i < 200; i++)
			{
				var swardMc:DisplayObject=ResUtils.getMC("SkeletionSward");
				swardMc.x=CERandom.range(0, 600);
				swardMc.y=CERandom.range(0, 800);
				this.addChild(swardMc);
				allSkeletionSwardMcVector.push(swardMc);
			}
			this.addEventListener(Event.ENTER_FRAME, onTimerTick);
		}

		private function onTimerTick(e:Event):void
		{
			for each (var skeletionMc:DisplayObject in allSkeletionSwardMcVector)
			{
				skeletionMc.rotation+=5;
			}
		}

	}
}
